package work.chenxr.aop.service;

import lombok.AllArgsConstructor;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;
import work.chenxr.aop.dto.OperateLogModel;

/**
 * @Author Chenxr
 * @Date 2023/09/18
 * @Description 操作日志服务
 */

@Service
@AllArgsConstructor
public class OperateLogService {

    @Async
    public void saveLog(OperateLogModel log) {
        System.out.println(log);
        // 保存到数据库（Mysql、Redis、MongoDB）
    }
}
